package com.abth.openapi.client;

import com.abth.douyin.domain.DouyinShop;
import com.abth.douyin.service.IDouyinShopService;
import com.abth.openapi.domain.OpapiApp;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/open/api/douyin")
public class OpenApiDouyinClient extends BaseController {

    @Autowired
    private IDouyinShopService douyinShopService;

    @GetMapping("/list")
    public TableDataInfo list(DouyinShop douyinShop)
    {
        startPage();
        List<DouyinShop> list = douyinShopService.selectDouyinShopList(douyinShop);
        return getDataTable(list);
    }
}
